import request from '@/utils/request'

// 查询整改下发列表
export function listOrderHistory(query) {
  return request({
    url: '/orderHistory/orderHistory/list',
    method: 'get',
    params: query
  })
}

// 查询整改下发详细
export function getOrderHistory(id) {
  return request({
    url: '/orderHistory/orderHistory/' + id,
    method: 'get'
  })
}

// 新增整改下发
export function addOrderHistory(data) {
  return request({
    url: '/orderHistory/orderHistory',
    method: 'post',
    data: data
  })
}

// 修改整改下发
export function updateOrderHistory(data) {
  return request({
    url: '/orderHistory/orderHistory',
    method: 'put',
    data: data
  })
}

// 删除整改下发
export function delOrderHistory(id) {
  return request({
    url: '/orderHistory/orderHistory/' + id,
    method: 'delete'
  })
}
